﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListNews.ascx.cs" Inherits="Controls_ucListNews" %>
<div class="list_news">
    <asp:Repeater ID="rptNews" runat="server">
        <ItemTemplate>
            <div class="folder">
                <a href="index.aspx?cid=-5&id=<%#Eval("ARTICLE_ID") %>">
                    <img src="<%#Eval("THUMB_IMG") %>" alt="#" class="thumb_img" /></a>
                <p>
                    <a href="index.aspx?cid=-5&id=<%#Eval("ARTICLE_ID") %>"  class="top">
                        <%#Eval("FULL_ARTICLE_TITLE") %></a>
                </p>
                <p>
                    <%#LibraryO2S.O2S_StringUtil.Substring(Eval("FULL_ARTICLE_DESCRIPTION").ToString(),0,180) %>
                </p>
                <ul class="related_news">
                    <asp:Repeater ID="rptRelative" runat="server" DataSource='<%#loadRelative(Eval("ARTICLE_ID").ToString()) %>'>
                        <ItemTemplate>
                            <li><a href="index.aspx?cid=-5&id=<%#Eval("ARTICLE_ID") %>"><%#LibraryO2S.O2S_StringUtil.Substring(Eval("FULL_ARTICLE_TITLE").ToString(),0,50) %></a></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
                <p class="view_detail">
                    <a href="index.aspx?cid=-5&id=<%#Eval("ARTICLE_ID") %>">Xem chi tiết</a></p>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <div class="pagerContainer" id="pagerContainer" runat="server">
    </div>
</div>
